<template>
  <div>
    <header>发布</header>
    <van-cell-group>
      <van-field v-model="value" placeholder="请输入标题" />
    </van-cell-group>
    <van-field
      v-model="message"
      rows="2"
      autosize
      label="留言"
      type="textarea"
      maxlength="50"
      placeholder="请输入留言"
      show-word-limit
    />
    
    <van-uploader :after-read="afterRead" />
    <van-button type="primary" class="btn">确定</van-button>
    <van-tabbar v-model="active" route>
      <van-tabbar-item icon='wap-home-o' to='/'>首页 </van-tabbar-item>
      <van-tabbar-item icon="add-o" to="/MyHeader">发布</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/MyFooter">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script scoped>
export default {
  name: "MyHeader",
};
</script>

<style>
header {
  height: 50px;
  background-color: #4fc08d;
  line-height: 50px;
  text-align: center;
  font-size: 20px;
}

.btn {
  width: 300px;
  transform: translate(35px, 0);
}
</style>